package seccomp

import "golang.org/x/sys/unix"

// SyscallMap 系统调用名称到编号的映射
var SyscallMap = map[string]uint32{
	"read":         unix.SYS_READ,
	"write":        unix.SYS_WRITE,
	"open":         unix.SYS_FSOPEN,
	"close":        unix.SYS_CLOSE,
	"fstat":        unix.SYS_FSTAT,
	"mmap":         unix.SYS_MMAP,
	"munmap":       unix.SYS_MUNMAP,
	"mprotect":     unix.SYS_MPROTECT,
	"brk":          unix.SYS_BRK,
	"exit":         unix.SYS_EXIT,
	"exit_group":   unix.SYS_EXIT_GROUP,
	"rt_sigreturn": unix.SYS_RT_SIGRETURN,
	"clone":        unix.SYS_CLONE,
	"execve":       unix.SYS_EXECVE,
	"futex":        unix.SYS_FUTEX,
	"ioctl":        unix.SYS_IOCTL,
	"access":       unix.SYS_FACCESSAT,
	"stat":         unix.SYS_FSTAT,
	"lseek":        unix.SYS_LSEEK,
	"getpid":       unix.SYS_GETPID,
	"arch_prctl":   unix.SYS_ARCH_PRCTL, // accepted
	"getcwd":       unix.SYS_GETCWD,
	"chdir":        unix.SYS_CHDIR,
	"readlink":     unix.SYS_READLINKAT,
	"getdents":     unix.SYS_GETDENTS64,
}
